import { Link } from 'react-router-dom';
import { Menu } from 'antd';
import './Sidebar.css'; // 可选样式文件

const Sidebar = () => {
  const items = [
    {
      key: 'userlist',
      label: <Link to="/userlist">用户管理</Link>,
      // 图标可扩展：icon: <UserOutlined />
    },
    // 其他菜单项示例
    /*
    {
      key: 'dashboard',
      label: <Link to="/">仪表盘</Link>,
    }
    */
  ];

  return (
    <div className="sidebar-container">
      <Menu
        mode="inline"
        defaultSelectedKeys={['userlist']}
        items={items}
        style={{ height: '100%', borderRight: 0 }}
      />
    </div>
  );
};

export default Sidebar;